import { createFeatureSelector, createSelector } from '@ngrx/store';
import {adapter, MemoFeatureKey, State} from "../reducers/memo.reducer"
import {AppState} from "../index";
const { selectIds, selectEntities, selectAll, selectTotal } = adapter.getSelectors();

export const selectMemo = createFeatureSelector<AppState, State>(MemoFeatureKey)
export const selectmemo = createSelector(selectMemo, selectAll)